<?php
class PagesConf
{
	
	// pages
	const login_page = "login";

	public function __construct()
	{
		$this->pageMap = array(
			"home" => "home.php",
			"login" => "login.php",
			"forgotpass" => "forgotpass.php",
			"about" => "about.php",
			"signup" => "signup.php",
			"contact" => "contact.php"
		);
		$this->defaultPage = "error.php";
	}

	public function getPage($name)
	{
		$result = $this->pageMap[$name];
		return isset($result) ? $result : $this->defaultPage;
	}


	private $pageMap;
	private $defaultPage;
}
?>